package com.sphd.beautysalon.adapters;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sphd.beautysalon.info.InorOutRecordInfo;
import com.sphd.beautysalon.R;

import java.util.List;

/**
 * Created by Hu on 2016/12/23.
 */

public class InOrOutRecordAdapter extends BaseQuickAdapter<InorOutRecordInfo> {
    public InOrOutRecordAdapter(int layoutResId, List<InorOutRecordInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, InorOutRecordInfo inorOutRecordInfo) {
        baseViewHolder.setText(R.id.i_record_name, inorOutRecordInfo.getDishes_name()).
                setText(R.id.i_record_no, inorOutRecordInfo.getDishes_inventory() + "");
    }
}
